package com.lagou.user.client.fallback;

import com.lagou.user.client.CodeFeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author jacken
 * @date 2020/4/25 9:56 PM
 */
@Component
public class CodeFallback implements CodeFeignClient {

  @Override
  public Integer validateCode(@PathVariable("email") String email, @PathVariable("code") String code) {
    return 2;
  }
}
